WARNING: This program has a bug, so we need to fix it! Let's learn some function rules!

RULE 1: Function names cannot have any spaces in them. Combine two word names with an underscore _ , like this: function_name.

  • Click Run and read the error message.
  • Debug the program by making the function name one word.

To navigate the page using the TAB key, first press ESC to exit the code editor.

sprite = codesters.Sprite("dinosaur", 0, -125) sprite.set_speed(2) def dino band(): stage.set_background("concert") sprite.say("My band is called Rock-asaurous Rex") sprite.turn_left(360) dino_band()
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)